package com.wicket.okrapp.biz.service.dto.common;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import java.util.Objects;

/**
 * @desc TargetDto
 * @使用场景
 */
@Data
public class TargetDto extends BaseDto implements Serializable {

  /**
   * 目标ID
   */
  @ApiModelProperty("目标ID")
  private String targetId;

  /**
   * 目标标识
   */
  @ApiModelProperty("目标标识")
  private String targetCode;

  /**
   * 目标进展状态 NOT_AT_THE:未开始 ONGOING:进行中 HAS_ENDED:已结束
   */
  @ApiModelProperty("目标进展状态")
  private String targetPgsStatus;

  /**
   * 归属评价模板ID
   */
  @ApiModelProperty("归属评价模板ID")
  private String evaluationTemplateId;

  /**
   * 操作时间
   */
  @ApiModelProperty("操作时间")
  private Date operateTime;
/**
     * 冗余评价模板类型配置项
     */
    @ApiModelProperty("冗余评价模板类型配置项")
    private String	 evaluationTemplateTypeCode;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      TargetDto that = (TargetDto) o;
      return  targetId == that.targetId&&targetCode == that.targetCode&&targetPgsStatus == that.targetPgsStatus&&evaluationTemplateId == that.evaluationTemplateId&&operateTime == that.operateTime&&evaluationTemplateTypeCode == that.evaluationTemplateTypeCode;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), targetId,targetCode,targetPgsStatus,evaluationTemplateId,operateTime,evaluationTemplateTypeCode);
    }

}
